//Created by Action Script Viewer - http://www.buraks.com/asv
package com.gengine.utils {
	import flash.geom.*;
	
	public class MathUitl {
		
		public static const ONE_RADIANS:Number = 57.2957795130823;
		public static const ONE_ANGLE:Number = 0.0174532925199433;
		
		public static function getRadiansByPoint(_arg1:Point, _arg2:Point):Number{
			return (Math.atan2((_arg2.y - _arg1.y), (_arg2.x - _arg1.x)));
		}
		public static function getRadiansByXY(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Number{
			return (Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)));
		}
		public static function getRadians(_arg1:Number):Number{
			return ((_arg1 * ONE_ANGLE));
		}
		public static function getAngle(_arg1:Number):Number{
			return ((_arg1 * ONE_RADIANS));
		}
		public static function getDistance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
			var _local5:Number = (_arg2 - _arg1);
			var _local6:Number = (_arg4 - _arg3);
			return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6))));
		}
		public static function random(_arg1:int, _arg2:int):int{
			var _local3:int = (_arg2 - _arg1);
			return ((Math.round((Math.random() * _local3)) + _arg1));
		}
		
	}
}
